package client;
import javax.swing.JFrame;

public class IHM extends JFrame{

	private PanneauConnexion connX = new PanneauConnexion();
	
	public PanneauConnexion getConnX() {
		return connX;
	}

	public void setConnX(PanneauConnexion connX) {
		this.connX = connX;
	}

	private PanneauMenu menu = new PanneauMenu();
	
	public IHM(int parIDPanel)
	{
		this.setTitle("Sujet 13 : DataUpdater2010");
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		this.setVisible(true);
		this.setResizable(false);
		if(parIDPanel == 1)
		{	
			this.setSize(500, 150);
			this.setContentPane(connX);
			
		}
		else if(parIDPanel == 2)
		{
			this.setSize(1024, 768);
			this.setContentPane(menu);
		}
		this.setLocationRelativeTo(null);
	}
	
/*	public void actionPerformed(ActionEvent event)
	{if(event.getSource()== connX.ok){
		new IHM(2);
		this.dispose();}
	}
*/

}
